package com.clx.mx.xjar.controller;

import com.clx.mx.xjar.common.Bean2MapUtil;
import com.clx.mx.xjar.core.ExePmml;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class MxApp {
    @RequestMapping("/score")
    public Integer getExeScore(Map<String, Object> map) {
        return ExePmml.getExeScore(map);
    }

    public static void main(String[] args) {
        Integer exeScore = new MxApp().getExeScore(Bean2MapUtil.beanToMap(new Param()));
        System.out.println("main=" + exeScore);
    }

}
